import request from '@/utils/request'

// 查询购物车列表列表
export function listShoppingCartList(userId) {
  return request({
    url: '/shopping/shoppingCartList/shoppingCartList?userId='+userId,
    method: 'get',
  })
}

export function orderGetDetailInstall(data) {
  return request({
    url: '/order/orderDetail/orderDetailInstall',
    method: 'post',
    data
  })
}

// 查询购物车列表详细
export function getShoppingCartList(middenId) {
  return request({
    url: '/shopping/shoppingCartList/' + middenId,
    data: 'get'
  })
}

// 新增购物车列表
export function addShoppingCartList(data) {
  return request({
    url: '/shopping/shoppingCartList',
    method: 'post',
    data: data
  })
}

// 修改购物车列表
export function updateShoppingCartList(data) {
  return request({
    url: '/shopping/shoppingCartList',
    method: 'put',
    data: data
  })
}


export function toCartInsert(data){
  return request({
    url: '/shopping/cart/cartInsert',
    method: 'post',
    data
  })
}

export function submitGetUUID(){
  return request({
    url:'/shopping/cart/submitGetUUID',
    method: 'get'
  })
}

export function addCartOrder(data) {
  return request({
    url: '/shopping/cart/remoteAddOrder',
    method: 'post',
    data: data
  })
}
